org.apache.poi.poifs.property
Class DirectoryProperty
- java.lang.Object
-
- org.apache.poi.poifs.property.Property
-
- org.apache.poi.poifs.property.DirectoryProperty
-
- All Implemented Interfaces:
- POIFSViewable, Child, Parent
- Direct Known Subclasses:
- RootProperty
public class DirectoryProperty extends Property implements Parent
Directory property
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classDirectoryProperty.PropertyComparator
-
Constructor Summary
Constructors Constructor and Description DirectoryProperty(java.lang.String name)Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddChild(Property property)Add a new child to the collection of childrenbooleanchangeName(Property property, java.lang.String newName)Change a Property's namebooleandeleteChild(Property property)Delete a Propertyjava.util.Iterator<Property>getChildren()Get an iterator over the children of this Parent; all elements are instances of Property.booleanisDirectory()-
Methods inherited from class org.apache.poi.poifs.property.Property
getName, getNextChild, getPreviousChild, getShortDescription, getSize, getStartBlock, getStorageClsid, getViewableArray, getViewableIterator, isSmall, preferArray, setNextChild, setPreviousChild, setStartBlock, setStorageClsid, shouldUseSmallBlocks, writeData
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.poi.poifs.property.Parent
setNextChild, setPreviousChild
-
Methods inherited from interface org.apache.poi.poifs.property.Child
getNextChild, getPreviousChild
-
-
-
-
Constructor Detail
-
DirectoryProperty
public DirectoryProperty(java.lang.String name)
Default constructor- Parameters:
name- the name of the directory
-
-
Method Detail
-
changeName
public boolean changeName(Property property, java.lang.String newName)
Change a Property's name- Parameters:
property- the Property whose name is being changednewName- the new name for the Property- Returns:
- true if the name change could be made, else false
-
deleteChild
public boolean deleteChild(Property property)
Delete a Property- Parameters:
property- the Property being deleted- Returns:
- true if the Property could be deleted, else false
-
isDirectory
public boolean isDirectory()
- Specified by:
isDirectoryin classProperty- Returns:
- true if a directory type Property
-
getChildren
public java.util.Iterator<Property> getChildren()
Get an iterator over the children of this Parent; all elements are instances of Property.- Specified by:
getChildrenin interfaceParent- Returns:
- Iterator of children; may refer to an empty collection
-
addChild
public void addChild(Property property) throws java.io.IOException
Add a new child to the collection of children
-
-
DataMelt 3.0 © DataMelt by jWork.ORG