|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.bibalex.daf.handlers.statusdatahandler.StatusDef
public class StatusDef
Parses and handles the StatusData.
StatusData are saved in the transaction log, on the following format:
<Status>
<FileLevelInfo>
<Info From="" To="" Phase="" Reason="" User="" Done="" />
.
</FileLevelInfo>
<Comment>
Commnet goes here
</Comment>
<Database>
<Name>Value</Name>
.
</Database>
<Backup Version="" Size="" >
<Server IP="" Username="" Password="" />
<CompressedFolder Name="" Size="" />
<CompressedFolder Name="" Size="" />
.
.
</Backup>
</Status>
Field Summary | |
---|---|
BackupInfoDef |
backupInfo
Holds the backup portion of the status data. |
NameValueInfo |
commentInfo
Holds the comment portion of the status data. |
DatabaseInfoDef |
databaseInfo
Holds the database portion of the status data. |
FileLevelInfoHandler |
fileInfo
Holds the FileLevelInfo portion of the status data. |
Constructor Summary | |
---|---|
StatusDef()
Creates a new instacne of StatusDef. All fields are set to null. |
|
StatusDef(int transactionLogID)
Creates a new instance of StatusDef. |
|
StatusDef(org.w3c.dom.Node node)
Creates a new instance of StatusDef. |
|
StatusDef(java.lang.String nodeRep)
Creates a new instance of StatusDef. |
Method Summary | |
---|---|
private void |
createElementFromNode(org.w3c.dom.Node node)
Creates the StatusDef element by supplying its XmlNode represenation. |
private void |
fillFieldsFromString(java.lang.String nodeRep)
Fill the fields of this instance from the given String. If the string is null or empty, the fileds are defaulted to null. |
java.lang.String |
toString()
Returns the string representation of this object. |
java.lang.String |
toXmlString()
Returns a String representing the StatusDef in xml format. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public FileLevelInfoHandler fileInfo
public NameValueInfo commentInfo
public DatabaseInfoDef databaseInfo
public BackupInfoDef backupInfo
Constructor Detail |
---|
public StatusDef()
public StatusDef(org.w3c.dom.Node node) throws StatusDefException
node
- The Xml node that representd the element.
StatusDefException
- If the given node couldn't be parsed.public StatusDef(int transactionLogID) throws StatusDefException
transactionLogID
- The transactionLog ID to get its status data.StatusDefException
- If the transaction log status data neither could be obtained nor parsed.public StatusDef(java.lang.String nodeRep) throws StatusDefException
nodeRep
- The Xml String representing this element.
StatusDefException
- If the given String couldn't be parsed.Method Detail |
---|
private void fillFieldsFromString(java.lang.String nodeRep) throws StatusDefException
nodeRep
- The String to be parsed.
StatusDefException
- If the String couldn't be parsed.private void createElementFromNode(org.w3c.dom.Node node) throws StatusDefException
node
- The Xml Node representing this element.
StatusDefException
- If the node name is not 'Status' or children couldn't be created.public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toXmlString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |