|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.radrails.db.core.YMLFile
Parses a YML file and returns objects which describe how to connect to the available databases.
Constructor Summary | |
YMLFile()
Default constructor. |
|
YMLFile(YMLFile file)
Copy constructor. |
Method Summary | |
void |
addListener(IYMLFileChangeListener listener)
Add a listener. |
java.lang.String |
asText()
Gets the contents of what the YML file should be. |
DatabaseDescriptor |
getDbDevelopment()
Gets the dbDevelopment. |
DatabaseDescriptor |
getDbProduction()
Gets the dbProduction. |
DatabaseDescriptor |
getDbTest()
Gets the dbTest. |
void |
load(java.io.Reader reader)
Parses a YML file and sets the DatabaseDescriptors for this class. |
void |
removeListener(IYMLFileChangeListener listener)
Remove a listener. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public YMLFile()
public YMLFile(YMLFile file)
file
- The YMLFile to create a new YMLFile from.Method Detail |
public void addListener(IYMLFileChangeListener listener)
listener
- The IYMLFileChangeListener to add.public void removeListener(IYMLFileChangeListener listener)
listener
- The IYMLFileChangeListener to remove.public DatabaseDescriptor getDbDevelopment()
null
if no
development database is defined.public DatabaseDescriptor getDbProduction()
null
if no
development database is defined.public DatabaseDescriptor getDbTest()
null
if no development
database is defined.public void load(java.io.Reader reader) throws java.io.IOException
java.io.FileNotFoundException
- If the file could not be found.
java.io.IOException
- If the file could not be parsed.public java.lang.String asText()
java.io.FileNotFoundException
- If the file can not be found.
java.io.IOException
- If an error occurred during the save process.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |