|
Data Request Broker 2-3-release |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.gael.drb.DrbDefaultNodesChangeProducer
fr.gael.drb.DrbAbstractNode
fr.gael.drb.impl.DrbNodeImpl
fr.gael.drb.impl.zip.ZipNode
public class ZipNode
This class is used to Zip Node implementation.
| Field Summary |
|---|
| Fields inherited from interface fr.gael.drb.DrbItem |
|---|
ATTRIBUTE_ITEM, NODE_ITEM, UNDEFINED_ITEM, VALUE_ITEM |
| Constructor Summary | |
|---|---|
protected |
ZipNode(ZipFileNode zipfilen,
ZipEntry zipentry,
DrbNode parent,
ZipEntry[] children)
Builds a new zipFile from a ZipFileNode and a zipEntry. |
| Method Summary | |
|---|---|
boolean |
allowsMultiOccurrence()
Check if this node may have multiple occurrence |
boolean |
equals(Object obj)
Indicates whether this node is "equal to" to another node. |
DrbAttributeList |
getAttributes()
The attributes of the node The file nodes node have no specific attribute and this operation returns therefore a nullvalue at each call. |
DrbNodeList |
getChildren()
The children of the current node. |
Object |
getImpl(Class api)
Provide other implementation. |
String |
getName()
Name of the node. |
DrbNode |
getParent()
The parent of the current node. |
protected ZipEntry |
getZipEntry()
Get the zip entry of the zip file |
protected ZipFileNode |
getZipFileNode()
Get the zip file node |
boolean |
hasChild()
Checks if any child exists. |
boolean |
hasImpl(Class api)
Checks any implementation. |
| Methods inherited from class fr.gael.drb.impl.DrbNodeImpl |
|---|
close, createAttribute, createNode, flush, getProvider |
| Methods inherited from class fr.gael.drb.DrbAbstractNode |
|---|
appendChild, appendReference, getAttribute, getChildAt, getChildrenCount, getContent, getFirstChild, getIndex, getItemType, getLastChild, getNamedChild, getNamespaceBindings, getNamespaceURI, getNextSibling, getOccurrence, getPath, getPreviousSibling, getRoot, getValue, getValueType, getXPathName, getXPathName, insertChild, removeChild, rename, replaceChild, setAttributes, setNamespaceBindings, setNamespaceURI, setValue, toString |
| Methods inherited from class fr.gael.drb.DrbDefaultNodesChangeProducer |
|---|
addNodesChangeListener, getListenerList, nodesChanged, nodesInserted, nodesRemoved, removeNodesChangeListener, setListenerList, structureChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected ZipNode(ZipFileNode zipfilen,
ZipEntry zipentry,
DrbNode parent,
ZipEntry[] children)
zipfilen - the zip file nodeparent - The parent of this nodezipentry - the zip entrychildren - the list of children| Method Detail |
|---|
public boolean equals(Object obj)
equals in class DrbAbstractNodeobj - another value.
public String getName()
getName in class DrbAbstractNodepublic boolean allowsMultiOccurrence()
allowsMultiOccurrence in class DrbAbstractNodepublic boolean hasChild()
hasChild in class DrbAbstractNodepublic DrbNodeList getChildren()
getChildren in class DrbAbstractNodepublic boolean hasImpl(Class api)
hasImpl in class DrbNodeImplapi - the class
public Object getImpl(Class api)
getImpl in class DrbNodeImplapi - the class
protected ZipEntry getZipEntry()
protected ZipFileNode getZipFileNode()
public DrbNode getParent()
getParent in class DrbAbstractNodepublic final DrbAttributeList getAttributes()
The following table specifies the attributes that are available for a file. No atribute is provided optionally. The type of the attribute are expressed using the type identifer of the fr.gael.drb.value.Value class.
| Name | Description | Value Type |
| size | the length of the file in bytes. If the file is a directory, the size is equal to 0. | UNSIGNED_LONG_ID |
| ratio | the percentage of compression. If the file is a directory, the percentage of compression is equal to 0. It corresponds to the size divided by compressed size | STRING_ID |
| size compressed | the length of the file compressed in bytes. If the file is a directory, the size is equal to 0. | UNSIGNED_LONG_ID |
getAttributes in class DrbAbstractNode
|
Data Request Broker - DRB API® 2-3-release |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||