public class ResourceXMLGenerator extends java.lang.Object implements NodesFileGenerator
Constructor and Description |
---|
ResourceXMLGenerator(java.io.File file)
Constructor for the ResourceXMLGenerator
|
ResourceXMLGenerator(java.io.OutputStream output)
Constructor for the ResourceXMLGenerator
|
Modifier and Type | Method and Description |
---|---|
void |
addEntity(ResourceXMLParser.Entity entity)
Add entity object
|
void |
addNode(INodeEntry node)
Add Node object
|
void |
addNodes(java.util.Collection<INodeEntry> iNodeEntries)
Add all Node objects
|
void |
generate()
Generate and store the XML file
|
java.util.List<ResourceXMLParser.Entity> |
getEntities() |
void |
setEntities(java.util.List<ResourceXMLParser.Entity> entities) |
public ResourceXMLGenerator(java.io.File file)
file
- destination output filepublic ResourceXMLGenerator(java.io.OutputStream output)
output
- destination output filepublic java.util.List<ResourceXMLParser.Entity> getEntities()
public void setEntities(java.util.List<ResourceXMLParser.Entity> entities)
entities
- entities listpublic void addEntity(ResourceXMLParser.Entity entity)
entity
- entitypublic void addNode(INodeEntry node)
addNode
in interface NodesFileGenerator
node
- nodepublic void addNodes(java.util.Collection<INodeEntry> iNodeEntries)
NodesFileGenerator
addNodes
in interface NodesFileGenerator
iNodeEntries
- the nodespublic void generate() throws java.io.IOException
generate
in interface NodesFileGenerator
java.io.IOException
- on error