public class DirectoryProperty extends Property implements Parent, Iterable<Property>
| Modifier and Type | Class and Description |
|---|---|
static class |
DirectoryProperty.PropertyComparator |
| Constructor and Description |
|---|
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() |
Iterator<Property> |
iterator()
Get an iterator over the children of this Parent, alias for
getChildren() which supports foreach use |
getName, getNextChild, getPreviousChild, getShortDescription, getSize, getStartBlock, getStorageClsid, getViewableArray, getViewableIterator, isSmall, preferArray, setNextChild, setPreviousChild, setStartBlock, setStorageClsid, shouldUseSmallBlocks, writeDataequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetNextChild, setPreviousChildgetNextChild, getPreviousChildforEach, spliteratorpublic DirectoryProperty(String name)
name - the name of the directorypublic 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 Propertypublic Iterator<Property> getChildren()
getChildren in interface Parentpublic Iterator<Property> iterator()
getChildren() which supports foreach usepublic void addChild(Property property) throws IOException
addChild in interface Parentproperty - the new child to be added; must not be nullIOException - if we already have a child with the same
nameCopyright © 2010 - 2020 Adobe. All Rights Reserved