public class DirectoryProperty extends Property implements Parent
Modifier and Type | Class and Description |
---|---|
static class |
DirectoryProperty.PropertyComparator |
_NO_INDEX, _NODE_BLACK, _NODE_RED
Modifier | Constructor and Description |
---|---|
protected |
DirectoryProperty(int index,
byte[] array,
int offset)
reader constructor
|
|
DirectoryProperty(String name)
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addChild(Property property)
Add a new child to the collection of children
|
boolean |
changeName(Property property,
String newName)
Change a Property's name
|
boolean |
deleteChild(Property property)
Delete a Property
|
Iterator<Property> |
getChildren()
Get an iterator over the children of this Parent; all elements
are instances of Property.
|
boolean |
isDirectory() |
protected void |
preWrite()
Perform whatever activities need to be performed prior to
writing
|
getChildIndex, getIndex, getName, getNextChild, getPreviousChild, getShortDescription, getSize, getStartBlock, getStorageClsid, getViewableArray, getViewableIterator, isSmall, preferArray, setChildProperty, setIndex, setName, setNextChild, setNodeColor, setPreviousChild, setPropertyType, setSize, setStartBlock, setStorageClsid, shouldUseSmallBlocks, writeData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setNextChild, setPreviousChild
getNextChild, getPreviousChild
public DirectoryProperty(String name)
name
- the name of the directoryprotected DirectoryProperty(int index, byte[] array, int offset)
index
- index numberarray
- byte dataoffset
- offset into byte datapublic boolean changeName(Property property, String newName)
property
- the Property whose name is being changednewName
- the new name for the Propertypublic boolean deleteChild(Property property)
property
- the Property being deletedpublic boolean isDirectory()
isDirectory
in class Property
protected void preWrite()
public Iterator<Property> getChildren()
getChildren
in interface Parent
public void addChild(Property property) throws IOException
addChild
in interface Parent
property
- the new child to be added; must not be nullIOException
- if we already have a child with the same
nameCopyright © 2020. All rights reserved.