|
Extension SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.ide.model.DefaultDisplayable
oracle.ide.model.DefaultElement
oracle.ide.model.DefaultDocument
oracle.ide.model.DefaultNode
oracle.ide.model.DataNode
oracle.jdeveloper.library.JLibraryList
| Field Summary | |
static java.lang.String |
NAMESPACE_URI
|
static java.lang.String |
ROOT_TAG
|
| Fields inherited from class oracle.ide.model.DataNode |
_objectStore |
| Fields inherited from interface oracle.ide.addin.Subject |
OBJECT_MODIFIED |
| Fields inherited from interface oracle.ide.model.Category |
UNDEFINED |
| Constructor Summary | |
JLibraryList()
|
|
JLibraryList(JLibraryList list)
|
|
| Method Summary | |
boolean |
add(Element child)
Appends a child Element to the end of the
Folder. |
boolean |
canAdd(Element element)
Other classes can call this method to determine whether the given Element can be added to the Folder. |
boolean |
canRemove(Element element)
Other classes can call this method to determine whether the specified Element can be removed from this
Folder. |
boolean |
containsChild(Element child)
Returns true if the folder contains the
specified child Element; returns false
otherwise. |
java.lang.Object |
copyTo(java.lang.Object target)
Copies the internal state of this object to the
specified copy. |
protected void |
copyToImpl(JLibraryList copy)
|
protected ObjectStore |
currentObjectStore()
|
JDK |
findJDK(java.lang.String JDKName)
Finds the J2SE definition that matches the specified name. |
JDK |
findJDK(VersionNumber num)
Finds the J2SE definition that matches the specified version number. |
JLibrary |
findLibrary(java.lang.String libName)
Finds the library that matches the specified name. |
java.lang.String |
findUniqueJDKName()
Determines a unique name that can be used for a new J2SE definition. |
java.lang.String |
findUniqueLibraryName()
Determines a unique name that can be used for a new library. |
java.util.Map |
getAliasMap()
|
Attributes |
getAttributes()
This method returns an Attributes object that encodes the
attributes of the Element. |
java.util.Iterator |
getChildren()
This method is part of the Element interface to
provide a convenient way of getting an Iterator over any
contained child Elements without having to test the
object's type with the instanceof operator or having
to downcast to a more specific type. |
JDK |
getDefaultJDK()
|
java.util.List |
getJdkList()
Retrieves the list of J2SE definitions contained in this LibraryList. |
java.util.List |
getLibraryList()
Retrieves the list of Libraries contained in this LibraryList. |
java.lang.String |
getListName()
Retrieves the name of this LibraryList. |
static LibraryList |
getSystemLibraries()
Deprecated. Use JLibraryManager.getSystemLibraries() |
boolean |
isBuiltIn()
|
boolean |
isChildJDK(JDK jdk)
Determines whether the specified J2SE definition is a child of this LibraryList. |
boolean |
isChildLibrary(JLibrary lib)
Determines whether the specified Library is a child of this LibraryList. |
boolean |
isReadOnly()
Returns true if the document is read-only. |
boolean |
isTransient()
Whether this list is transient (not-persistent). |
boolean |
mayHaveChildren()
This method is part of the Element interface to
provide a convenient way of determining whether an object may
have children without having to test the object's type with the
instanceof operator or having to downcast to a
more specific type. |
void |
open()
Document interface method. |
boolean |
remove(Element child)
Removes the specified child Element. |
void |
removeAll()
Removes all children from the folder. |
java.lang.String |
resolveAlias(java.lang.String name)
Resolves a name against the list of known aliases. |
void |
setAliasMap(java.util.Map aliasMap)
|
void |
setBuiltIn(boolean isBuiltIn)
|
void |
setJdkList(java.util.List jdks)
|
void |
setLibraryList(java.util.List libs)
|
void |
setListName(java.lang.String name)
|
int |
size()
Returns the current number of children in the folder. |
| Methods inherited from class oracle.ide.model.DataNode |
close, getURL, reopen, save, setObjectStore |
| Methods inherited from class oracle.ide.model.DefaultNode |
equalsImpl, getCategory, setURL |
| Methods inherited from class oracle.ide.model.DefaultDocument |
attach, copyToImpl, createSubject, detach, ensureOpen, equalsImpl, getInputStream, getLongLabel, getShortLabel, getSubject, getTimestamp, getTimestampDirectly, getToolTipText, isDirty, isNew, isOpen, markDirty, notifyObservers, refreshTimestamp, setOpen, setTimestampDirectly |
| Methods inherited from class oracle.ide.model.DefaultElement |
getData |
| Methods inherited from class oracle.ide.model.DefaultDisplayable |
getIcon, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface oracle.ide.model.Data |
getData |
| Methods inherited from interface oracle.ide.model.Displayable |
getIcon, getLongLabel, getShortLabel, getToolTipText, toString |
| Methods inherited from interface oracle.ide.addin.Subject |
attach, detach, notifyObservers |
| Methods inherited from interface oracle.ide.model.Dirtyable |
isDirty, markDirty |
| Methods inherited from interface oracle.ide.model.Document |
getInputStream, getTimestamp, isNew |
| Methods inherited from interface oracle.ide.model.LazyLoadable |
isOpen |
| Field Detail |
public static final java.lang.String NAMESPACE_URI
public static final java.lang.String ROOT_TAG
| Constructor Detail |
public JLibraryList()
public JLibraryList(JLibraryList list)
| Method Detail |
public static LibraryList getSystemLibraries()
public java.lang.Object copyTo(java.lang.Object target)
Copyablethis object to the
specified copy. If copy is
null, then this method should create a new instance
of this class and proceed to copy the internal state
to the newly created object. Generally, only the persistent
state of the object should be copied, but whether or not it is
appropriate to copy transient properties is at the discretion
of the individual implementor.
Regardless of whether the copy occurs to an existing object or to
a newly created object, the return value is object to which
this object's state was copied.
There is a standard implementation pattern for the
copyTo method that helps avoid problems that arise
when a Copyable object is subclassed. The pattern
is:
public Object copyTo( Object target )
{
final <this_class> copy =
target != null ? (<this_class>) target : new <this_class>();
copyToImpl( copy );
return copy;
}
protected final void copyToImpl( <this_class> copy )
{
super.copyToImpl( copy ); // if necessary
// put code here for copying the properties of <this_class>
}
The parameter passed into the copyToImpl method is
the same type of this class. The responsibility of
copyToImpl is to copy the state of this
class through direct access of the fields. The
copyToImpl method should not use getters and setters
since these may be overridden, causing the state of
this class to be incompletely copied.
copyTo in interface Copyabletarget - The target object to which the state of
this object should be copied. If target
is null, then the copyTo method will
return a new instance of this class.
this
object was copied. If the target was
non-null, then the return value is the same as the
target object that was passed in; otherwise, the
return value is a new instance of this class.protected final void copyToImpl(JLibraryList copy)
protected ObjectStore currentObjectStore()
currentObjectStore in class DataNodepublic void setLibraryList(java.util.List libs)
public java.util.List getLibraryList()
LibraryList
getLibraryList in interface LibraryListpublic void setJdkList(java.util.List jdks)
public java.util.List getJdkList()
LibraryList
getJdkList in interface LibraryListpublic java.lang.String findUniqueJDKName()
LibraryList
findUniqueJDKName in interface LibraryListpublic JDK findJDK(java.lang.String JDKName)
LibraryList
findJDK in interface LibraryListJDKName - the name of the J2SE definition
JDK representing the J2SE definition.public JDK findJDK(VersionNumber num)
LibraryList
findJDK in interface LibraryListnum - the VersionNumber of the desired J2SE defintion.
JDK representing the J2SE definition.public java.lang.String findUniqueLibraryName()
LibraryList
findUniqueLibraryName in interface LibraryListpublic JLibrary findLibrary(java.lang.String libName)
LibraryList
findLibrary in interface LibraryListpublic boolean isChildLibrary(JLibrary lib)
LibraryList
isChildLibrary in interface LibraryListpublic boolean isChildJDK(JDK jdk)
LibraryList
isChildJDK in interface LibraryListpublic boolean isTransient()
LibraryList
isTransient in interface LibraryListpublic java.util.Map getAliasMap()
public void setAliasMap(java.util.Map aliasMap)
public java.lang.String resolveAlias(java.lang.String name)
name - the alias name
public void setListName(java.lang.String name)
public java.lang.String getListName()
throws TransientMarker
LibraryList
getListName in interface LibraryListTransientMarkerpublic void setBuiltIn(boolean isBuiltIn)
public boolean isBuiltIn()
throws TransientMarker
TransientMarkerpublic JDK getDefaultJDK()
public java.util.Iterator getChildren()
ElementElement interface to
provide a convenient way of getting an Iterator over any
contained child Elements without having to test the
object's type with the instanceof operator or having
to downcast to a more specific type.
An implementation of Element that represents a leaf
in a tree structure should return null from this
method. An implementation of Element that could
represent a non-leaf in a tree structure should return either an
Iterator over the child Elements or
null if there are no children.
getChildren in interface ElementgetChildren in class DefaultElementElement.getChildren()public boolean mayHaveChildren()
ElementElement interface to
provide a convenient way of determining whether an object may
have children without having to test the object's type with the
instanceof operator or having to downcast to a
more specific type.
An implementation of Element that represents a leaf
in a tree structure should return false from this
method. An implementation of Element that could
represent a non-leaf in a tree structure should return
true from this method, even if it does not currently
contain any children.
mayHaveChildren in interface ElementmayHaveChildren in class DefaultElementElement.mayHaveChildren()public boolean canRemove(Element element)
FolderElement can be removed from this
Folder.
canRemove in interface Folderelement - the Element that is about to be removed
from this Folder.
true if the specified Element can be
removed from this Folder; false if the
Element cannot be removed.public boolean add(Element child)
FolderElement to the end of the
Folder.
add in interface Folderpublic boolean canAdd(Element element)
FolderElement can be added to the Folder.
canAdd in interface Folderelement - the Element that is about to be added
to this Folder.
true if the specified Element can be
added to this Folder; false if the
Element cannot be added.public void removeAll()
Folder
removeAll in interface Folderpublic int size()
Folder
size in interface Folderpublic boolean containsChild(Element child)
Foldertrue if the folder contains the
specified child Element; returns false
otherwise.
containsChild in interface Folderpublic boolean remove(Element child)
FolderElement. If the child object
appears more than once, only the first instance is removed.
remove in interface Folderchild - The child object to remove.public Attributes getAttributes()
ElementAttributes object that encodes the
attributes of the Element. Changing the attribute
settings on the return object changes the element attributes.
Subclasses should use their super class attributes object to
define their own attributes. This allows subclasses to
inherit their super class attributes. If a subclass does not
wish to inherit attributes, they should first call
getAttributes().clear() and define new attributes.
getAttributes in interface ElementgetAttributes in class DefaultElementElement.getAttributes()public boolean isReadOnly()
Documenttrue if the document is read-only.
isReadOnly in interface DocumentisReadOnly in class DefaultDocumentDocument.isReadOnly()
public void open()
throws java.io.IOException
DataNodeDocument interface method. This method uses
ObjectStore to unmarshal the file into a JavaBean
instance.
open in interface Documentopen in class DataNodejava.io.IOExceptionObjectStore
|
Extension SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright ©1997, 2003, Oracle. All rights reserved.