public abstract class DefaultContainer extends Node implements Folder
| Modifier and Type | Field and Description | 
|---|---|
| protected java.util.ArrayList | _childrenThe " final" modifier makes it possible to synchronize
  on the_childrenobject, since its value can never
  change. | 
LOG_READONLY| Constructor and Description | 
|---|
| DefaultContainer() | 
| DefaultContainer(java.net.URL url) | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | add(Element element)Part of the  Folderinterface. | 
| boolean | add(Element element,
   boolean notify) | 
| boolean | canAdd(Element element)Part of the  Folderinterface. | 
| boolean | canRemove(Element element)Part of the  Folderinterface. | 
| boolean | containsChild(Element child) | 
| java.util.Iterator | getChildren()Part of the  Elementinterface. | 
| boolean | mayHaveChildren()Part of the  Elementinterface. | 
| boolean | remove(Element element)Part of the  Folderinterface. | 
| boolean | remove(Element element,
      boolean notify) | 
| void | removeAll()Removes all children from the folder. | 
| void | removeAll(boolean notify) | 
| int | size()Returns the current number of children in the folder. | 
addNodeListener, addNodeListenerForType, addNodeListenerForTypeHierarchy, attach, beginThreadNodeUsageCycle, callUnderReadLock, callUnderWriteLock, close, closeImpl, createSubject, delete, deleteImpl, detach, endThreadNodeUsage, endThreadNodeUsageCycle, ensureOpen, equalsImpl, getAttributes, getData, getIcon, getInputStream, getLongLabel, getShortLabel, getSubject, getTimestamp, getTimestampLoadedUnsafe, getToolTipText, getTransientProperties, getUnmodifiedTimestamp, getURL, isDirty, isLoaded, isLockHeld, isMigrating, isNew, isOpen, isReadLocked, isReadLockHeld, isReadOnly, isReadOrWriteLocked, isTrackedInNodeCache, isTrackingThreadNodeUsage, isWriteLocked, isWriteLockHeld, lockCount, markDirty, markDirtyImpl, nodeLock, notifyObservers, open, openImpl, readLock, readLockCount, readLockInterruptibly, readUnlock, refreshTimestamp, removeNodeListener, removeNodeListenerForType, removeNodeListenerForTypeHierarchy, rename, renameImpl, reportOpenException, revert, revertImpl, runUnderReadLock, runUnderWriteLock, save, saveImpl, setEventLog, setMigrating, setOpen, setReadOnly, setTimestampDirectly, setURL, toString, tryRunUnderReadLock, tryRunUnderWriteLock, unsetMigrating, upgradeLock, upgradeUnlock, urlReadOnlyChanged, writeLock, writeLockCount, writeLockInterruptibly, writeUnlockclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAttributes, getDatagetIcon, getLongLabel, getShortLabel, getToolTipText, toStringprotected final java.util.ArrayList _children
final" modifier makes it possible to synchronize
  on the _children object, since its value can never
  change.public DefaultContainer()
public DefaultContainer(java.net.URL url)
public boolean mayHaveChildren()
Element interface.  This implementation always
  returns true.mayHaveChildren in interface ElementmayHaveChildren in class Nodetrue if this Element may contain
  child Elements.Element.mayHaveChildren()public java.util.Iterator getChildren()
Element interface.  This implementation returns
  an Iterator over the current list of children.getChildren in interface ElementgetChildren in class NodeIterator over any child Elements
  contained by this Element.  If there are no children,
  null is returned.Element.getChildren()public boolean canAdd(Element element)
Folder interface.  The default implementation
  returns true if and only if the specified
  Element is not null.canAdd in interface Folderelement - the Element that is about to be added
  to this Folder.true if and only if the specified
  Element is not null.Folder.canAdd(Element)public boolean add(Element element)
Folder interface.  The specified Element
  is added to the end of the child list.  However, if the
  Element is null, this method does nothing.No notification is fired by this method.
add in interface FolderFolder.add(oracle.ide.model.Element)public boolean canRemove(Element element)
Folder interface.  The default implementation
  returns true if and only if the specified
  Element is not null.canRemove in interface Folderelement - the Element that is about to be removed
  from this Folder.true if and only if the specified
  Element is not null.Folder.canRemove(Element)public boolean remove(Element element)
Folder interface.  The specified Element
  is removed from the child list.  However, if the Element is
  null, this method does nothing.  If the Element
  occurs more than once in the child list, then only the first
  instance is removed.No notification is fired by this method.
remove in interface Folderelement - The child object to remove.Folder.remove(Element)public boolean containsChild(Element child)
FoldercontainsChild in interface Folderpublic int size()
Folderpublic void removeAll()
Folderpublic boolean add(Element element, boolean notify)
public boolean remove(Element element, boolean notify)
public void removeAll(boolean notify)