|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.bibalex.daf.handlers.statusdatahandler.CompressedFolderDef
public class CompressedFolderDef
Represents an Xml node with the following format:
<CompressedFolder ZipFileName="" FolderName="" Size="" />
This node means that folder indicated by FolderName attribute has been compressed in the zip file indicated by ZipFileName attribute.
The "Size" attribute, which is optional, indicates the size of the zip file.
Field Summary | |
---|---|
java.lang.String |
folderName
The 'FolderName' property of the element. |
float |
size
The 'Size' property of the element. |
java.lang.String |
zipFileName
The 'ZipFileName' property of the element. |
Constructor Summary | |
---|---|
CompressedFolderDef()
Creates a new instance of CompressedFolderDef. |
|
CompressedFolderDef(org.w3c.dom.Node node)
Creates a new instance of CompressedFolderDef. |
|
CompressedFolderDef(java.lang.String nodeRep)
Creates a new instance of CompressedFolderDef. |
|
CompressedFolderDef(java.lang.String folderName,
java.lang.String zipFileName,
float size)
Creates a new instance of CompressedFolderDef. |
Method Summary | |
---|---|
private void |
createElementFromNode(org.w3c.dom.Node node)
Creates the CompressedFolderDef by supplying its XmlNode represenation. |
java.lang.String |
toString()
Returns the string representation of this object. |
java.lang.String |
toXmlString()
Converts this instance to a valid XML string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public java.lang.String folderName
public java.lang.String zipFileName
public float size
new Float(size).intValue();
Constructor Detail |
---|
public CompressedFolderDef(java.lang.String folderName, java.lang.String zipFileName, float size)
folderName
- The 'FolderName' property of the element.zipFileName
- The 'ZipFileName' property of the element.size
- The 'Size' property of the element.public CompressedFolderDef()
public CompressedFolderDef(org.w3c.dom.Node node) throws StatusDefException
node
- The Xml Node representing this element.
StatusDefException
- If the node couldn't be parsed.public CompressedFolderDef(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 'CompressedFolder' or attributes are missing.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 |