|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.dtolabs.shared.resources.ResourceXMLGenerator
public class ResourceXMLGenerator
ResourceXMLGenerator can generate a resources.xml file given a set of entities or INodeEntry objects.
Constructor Summary | |
---|---|
ResourceXMLGenerator(java.io.File file)
Constructor for the ResourceXMLGenerator |
|
ResourceXMLGenerator(java.io.OutputStream output)
Constructor for the ResourceXMLGenerator |
Method Summary | |
---|---|
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()
Return entities list |
void |
setEntities(java.util.List<ResourceXMLParser.Entity> entities)
Set entities list |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResourceXMLGenerator(java.io.File file)
file
- destination output filepublic ResourceXMLGenerator(java.io.OutputStream output)
file
- destination output fileMethod Detail |
---|
public java.util.List<ResourceXMLParser.Entity> getEntities()
public void setEntities(java.util.List<ResourceXMLParser.Entity> entities)
entities
- public void addEntity(ResourceXMLParser.Entity entity)
entity
- public void addNode(INodeEntry node)
addNode
in interface NodesFileGenerator
node
- public 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |