|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bibalex.daf.handlers.statusdatahandler.BackupInfoDef
public class BackupInfoDef
Represents an Xml node with the following format:
<Backup Version="" Size="" BackupAs="" >
<Server IP="" Username="" Password="" />
<CompressedFolder Name="" Size="" />
<CompressedFolder Name="" Size="" />
.
.
</Backup>
Note: There could be 0 or more compressed folders defined.
| Field Summary | |
|---|---|
java.lang.String |
backupAs
Holds the 'BackupAs' property used in old system data retrieval. |
java.util.ArrayList<CompressedFolderDef> |
compressedFolders
Holds the compressed folders defintions contained within this instance. |
ServerDef |
server
Holds the server defintion contained within this instance. |
float |
size
The 'Size' property of the server. |
int |
version
The 'Version' property of the server. |
| Constructor Summary | |
|---|---|
BackupInfoDef()
Creates a new instance of BackupInfoDef. |
|
BackupInfoDef(org.w3c.dom.Node node)
Creates a new instance of BackupInfoDef. |
|
BackupInfoDef(java.lang.String nodeRep)
Creates a new instance of BackupInfoDef. |
|
| Method Summary | |
|---|---|
private void |
createElementFromNode(org.w3c.dom.Node node)
Creates the BackupInfoDef element by supplying its XmlNode represenation. |
CompressedFolderDef[] |
getCompressedFolders()
Gets the compressed folders defined within this section. |
java.lang.String |
toString()
Returns the string representation of this object. |
java.lang.String |
toXmlString()
Returns a String representing the BackupInfoDef in xml format. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public int version
public float size
public ServerDef server
public java.lang.String backupAs
public java.util.ArrayList<CompressedFolderDef> compressedFolders
| Constructor Detail |
|---|
public BackupInfoDef()
public BackupInfoDef(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 BackupInfoDef(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 createElementFromNode(org.w3c.dom.Node node)
throws StatusDefException
node - The Xml Node representing this element.
StatusDefException - If the node name is not 'Backup', attributes are missing or child couldn't be added.public CompressedFolderDef[] getCompressedFolders()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toXmlString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||