|
Extension SDK 10.1.3.36.73 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectoracle.ide.model.Node
oracle.ide.model.DataNode
oracle.ide.model.DataContainer
| Constructor Summary | |
DataContainer()
Default constructor. |
|
DataContainer(java.net.URL url)
|
|
| Method Summary | |
boolean |
add(java.util.Collection childElements,
boolean notify)
Adds a Collection of Element objects to the child
list for the container. |
boolean |
add(Element element)
Part of the Folder interface. |
boolean |
add(Element element,
boolean notify)
|
boolean |
canAdd(Element element)
Part of the Folder interface. |
boolean |
canRemove(Element element)
Part of the Folder interface. |
protected void |
closeImpl()
Subclasses should override this method to customize the close() behavior. |
boolean |
containsChild(Element child)
Returns true if the folder contains the
specified child Element; returns false
otherwise. |
boolean |
equals(java.lang.Object obj)
|
protected boolean |
equalsImpl(DataContainer other)
|
java.lang.String |
getBaseDirectory()
|
java.util.Iterator |
getChildren()
Part of the Element interface. |
java.util.List |
getListOfChildren()
Fulfills the public accessor part of the Folder
contract. |
oracle.javatools.data.HashStructure |
getProperties()
Returns the root HashStructure object that holds properties for this Project. |
java.lang.String |
getProperty(java.lang.String name)
Convenience method equivalent to calling project.getProperties().getString(name). |
java.lang.String |
getProperty(java.lang.String name,
java.lang.String defaultValue)
Convenience method equivalent to calling project.getProperties().getString(name, defaultValue). |
oracle.javatools.data.HashStructure |
getSharedPropertiesOnly()
This method returns the persistent HashStructure that is not user-private. |
java.util.Map |
getTransientProperties()
This method returns a Map that the caller can use to store 'transient' properties in the Project. |
oracle.javatools.data.HashStructure |
getUserPropertiesOnly()
For DataContainer subtypes that distinguish between user-private properties and shared properties, this method returns only the user-private HashStructure. |
boolean |
mayHaveChildren()
Part of the Element interface. |
protected void |
openImpl()
This method uses ObjectStore to unmarshal the file into a
JavaBean instance. |
protected void |
postCloseImpl()
This method is called after nodeClosed(..) has been called on all registered NodeListeners. |
boolean |
remove(Element element)
Part of the Folder interface. |
boolean |
remove(Element element,
boolean notify)
|
void |
removeAll()
Removes all children from the folder. |
void |
removeAll(boolean notify)
|
protected void |
resetSubDirtyableOwners(java.util.List children)
Resets the owner of each element listed. |
void |
setListOfChildren(java.util.List list)
Fulfills the public accessor part of the Folder
contract.
|
void |
setProperty(java.lang.String name,
java.lang.String value)
Convenience method equivalent to calling project.getProperties().putString(name, value). |
protected void |
setSubDirtyableOwner(Element element,
Dirtyable owner)
Sets the owner of this element to the specified element. |
int |
size()
Returns the current number of children in the folder. |
void |
update(java.lang.Object observed,
UpdateMessage change)
Notification message. |
| Methods inherited from class oracle.ide.model.DataNode |
getObjectStoreTarget, getURL, newObjectStore, saveImpl |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface oracle.ide.model.Element |
getAttributes, getData |
| Methods inherited from interface oracle.ide.model.Displayable |
getIcon, getLongLabel, getShortLabel, getToolTipText, toString |
| Constructor Detail |
public DataContainer()
public DataContainer(java.net.URL url)
| Method Detail |
public oracle.javatools.data.HashStructure getProperties()
Subclasses that support user-private properties must override this method to return the proper chained HashStructure.
getProperties in interface oracle.javatools.data.PropertyStoragepublic oracle.javatools.data.HashStructure getUserPropertiesOnly()
getSharedPropertiesOnly().Subclasses that support user-private properties must override this method to return the right HashStructure.
public final oracle.javatools.data.HashStructure getSharedPropertiesOnly()
public final java.lang.String getProperty(java.lang.String name)
project.getProperties().getString(name).
public final java.lang.String getProperty(java.lang.String name,
java.lang.String defaultValue)
project.getProperties().getString(name, defaultValue).
public final void setProperty(java.lang.String name,
java.lang.String value)
project.getProperties().putString(name, value).
public final java.util.Map getTransientProperties()
equals(Object)
and they are not copied by #copyTo(Object).Transient properties are automatically discarded whenever the Project is closed. There are many ways to close a Project -- for example, exiting the IDE, removing the enclosing workspace, closing the project explicitly, etc. Therefore any such actions will cause the Project's transient properties to be discarded.
Clients can listen for 'project closing' and 'project closed'
events by registering an Observer with the Project that
filters for the UpdateMessage.OBJECT_CLOSING or
UpdateMessage.OBJECT_CLOSED IDs returned by
UpdateMessage.getMessageID().
public java.util.List getListOfChildren()
throws TransientMarker
Folder
contract.
List view of the child @{link Element}s contained
by this DataFolder.
TransientMarkerpublic void setListOfChildren(java.util.List list)
Folder
contract.
Sets the child list of the DataFolder instance
to match the specified List. Only objects in the
List that can be cast to Element are added. The
implementation uses the DefaultFolder.add(Element) method
to add the child to the list, so that subclass implementations can
override DefaultFolder.add(Element) without having to also
override this method.
public boolean mayHaveChildren()
Element interface. This implementation always
returns true.
mayHaveChildren in interface ElementmayHaveChildren in class NodeElement.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 NodeElement.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)
Foldertrue if the folder contains the
specified child Element; returns false
otherwise.
containsChild in interface Folderpublic int size()
Folder
size in interface Folderpublic void removeAll()
Folder
removeAll in interface Folder
public boolean add(Element element,
boolean notify)
public boolean remove(Element element,
boolean notify)
public void removeAll(boolean notify)
public final java.lang.String getBaseDirectory()
protected void openImpl()
throws java.io.IOException
DataNodeObjectStore to unmarshal the file into a
JavaBean instance. In addition, subclasses can call this method
and indicate that the method should not send OBJECT_OPENED notification
to observers. This method sends OBJECT_OPENED notification in an
invoke later event.
openImpl in class DataNodejava.io.IOExceptionObjectStore
protected void closeImpl()
throws java.io.IOException
Node
closeImpl in class Nodejava.io.IOException - if an I/O error occurred while closingprotected void postCloseImpl()
Node
postCloseImpl in class Node
public void update(java.lang.Object observed,
UpdateMessage change)
Observer
update in interface Observerobserved - the subject whose state has changed.change - what has changed.public boolean equals(java.lang.Object obj)
protected final boolean equalsImpl(DataContainer other)
public boolean add(java.util.Collection childElements,
boolean notify)
Collection of Element objects to the child
list for the container. Each Element is added with the
add(Element, boolean) method. If an Object in the
Collection is not an Element or if an Element
cannot be added to the container, then it is skipped and
false is returned; the other Element objects in
the Collection will still be added, however.
protected void resetSubDirtyableOwners(java.util.List children)
SubDirtyable element. When
a sub-dirtyable element is made dirty it actually makes its owner
dirty.
protected void setSubDirtyableOwner(Element element,
Dirtyable owner)
|
Extension SDK 10.1.3.36.73 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Copyright © 1997, 2005, Oracle.All rights reserved.