| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private final List | _children
List of Property instances |
| private final Set | _children_names
set of children's names |
| Access | Constructor and Description |
|---|---|
| public | |
| protected | DirectoryProperty(final int
index number index, final byte[] byte data array, final int offset into byte data offset)reader constructor |
| Modifier and Type | Method and Description |
|---|---|
| public void | addChild(final Property
the new child to be added; must not be null property)Implements org. Add a new child to the collection of children |
| public boolean | Returns: true if the name change could be made, else falsethe Property whose name is being changed property, String the new name for the Property newName)Change a Property's name |
| public boolean | Returns: true if the Property could be deleted, else falsethe Property being deleted property)Delete a Property |
| public Iterator | Returns: Iterator of children; may refer to an empty collectionImplements org. Get an iterator over the children of this Parent; all elements are instances of Property. |
| public boolean | Returns: true if a directory type PropertyImplements abstract org.
|
| public Iterator | iterator()
Implements java. Get an iterator over the children of this Parent, alias for
|
| protected void | preWrite()
Implements abstract org. Perform whatever activities need to be performed prior to writing |
| public Spliterator | Returns: Spliterator of children; may refer to an empty collectionOverrides default java. Get a spliterator over the children of this Parent; all elements are instances of Property. |
| _children | back to summary |
|---|---|
| private final List<Property> _children List of Property instances | |
| _children_names | back to summary |
|---|---|
| private final Set<String> _children_names set of children's names | |
| DirectoryProperty | back to summary |
|---|---|
| public DirectoryProperty(String name) Default constructor
| |
| DirectoryProperty | back to summary |
|---|---|
| protected DirectoryProperty(final int index, final byte[] array, final int offset) reader constructor
| |
| addChild | back to summary |
|---|---|
| public void addChild(final Property property) throws IOException Implements org. Add a new child to the collection of children
| |
| changeName | back to summary |
|---|---|
| public boolean changeName(Property property, String newName) Change a Property's name | |
| deleteChild | back to summary |
|---|---|
| public boolean deleteChild(Property property) Delete a Property
| |
| getChildren | back to summary |
|---|---|
| public Iterator Implements org. Get an iterator over the children of this Parent; all elements are instances of Property. | |
| isDirectory | back to summary |
|---|---|
| public boolean isDirectory() Implements abstract org.
| |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Get an iterator over the children of this Parent, alias for
| |
| preWrite | back to summary |
|---|---|
| protected void preWrite() Implements abstract org. Perform whatever activities need to be performed prior to writing | |
| spliterator | back to summary |
|---|---|
| public Spliterator Overrides default java. Get a spliterator over the children of this Parent; all elements are instances of Property.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: negative value if o1 < o2, zero if o1 == o2, positive value if o1 > o2.first object to compare, better be a Property o1, Property second object to compare, better be a Property o2)Implements java. compare method. |
| PropertyComparator | back to summary |
|---|---|
| public PropertyComparator() | |
| compare | back to summary |
|---|---|
| public int compare(Property o1, Property o2) Implements java. compare method. Assumes both parameters are non-null instances of Property. One property is less than another if its name is shorter than the other property's name. If the names are the same length, the property whose name comes before the other property's name, alphabetically, is less than the other property. | |