public final class SelectedProjectFiles extends DefaultLinkedDirtyable implements Copyable
Modifier and Type | Field and Description |
---|---|
static int |
AS_BOTH_COMPILED_OUTPUT_AND_SOURCE_FILES |
static int |
AS_COMPILED_OUTPUT_ONLY |
static int |
AS_SOURCE_FILES_ONLY |
Constructor and Description |
---|
SelectedProjectFiles() |
SelectedProjectFiles(HashStructure hash) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
copyTo(java.lang.Object object)
Copies the internal state of
this object to the specified copy . |
protected void |
copyToImpl(SelectedProjectFiles copy)
Design pattern for supporting strongly typed copying.
|
boolean |
equals(java.lang.Object o) |
protected boolean |
equalsImpl(SelectedProjectFiles spf)
This is a helper method for
equals(Object) that can also be used by subclasses that implement equals(Object) . |
int |
getDeploySourceAs() |
java.net.URL[] |
getFiles()
When
isAutoInclude() is true , the files property represents those files that are excluded; but when isAutoInclude() is false , the files property represents files that are included. |
HashStructure |
getHashStructure() |
java.lang.Class[] |
getSelectionFilters()
The strings returned by
getSelectionFilters() comprise a list of Java classes for objects that implement a filtering mechanism for project file selection. |
boolean |
isAutoInclude()
If
true , this flag indicates that project files should be included automatically whenever a new one is added to the project. |
void |
setAutoInclude(boolean b)
If
true , this flag indicates that project files should be included automatically whenever a new one is added to the project. |
void |
setDeploySourceAs(int deploySourceAs) |
void |
setFiles(java.net.URL[] files)
When
isAutoInclude() is true , the files property represents those files that are excluded; but when isAutoInclude() is false , the files property represents files that are included. |
void |
setSelectionFilters(java.lang.Class[] selectionFilters)
The strings accepted by
setSelectionFilters() comprise a list of Java classes for objects that implement a filtering mechanism for project file selection. |
compare, compareTo, linkContainingDirtyable, linkEmbeddedDirtyable, linkEmbeddedDirtyable, linkEmbeddedDirtyables, markDirty, setOwner, unlinkContainingDirtyable, unlinkEmbeddedDirtyable, unlinkEmbeddedDirtyable, unlinkEmbeddedDirtyables
dirtyLabel, dirtyLabel, dirtyLabel, isDirty
public static final int AS_COMPILED_OUTPUT_ONLY
public static final int AS_SOURCE_FILES_ONLY
public static final int AS_BOTH_COMPILED_OUTPUT_AND_SOURCE_FILES
public SelectedProjectFiles()
public SelectedProjectFiles(HashStructure hash)
public java.lang.Object copyTo(java.lang.Object object)
Copyable
this
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:
The parameter passed into thepublic 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> }
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 Copyable
object
- 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(SelectedProjectFiles copy)
public boolean isAutoInclude()
true
, this flag indicates that project files should be included automatically whenever a new one is added to the project.public void setAutoInclude(boolean b)
true
, this flag indicates that project files should be included automatically whenever a new one is added to the project.public java.net.URL[] getFiles()
isAutoInclude()
is true
, the files
property represents those files that are excluded; but when isAutoInclude()
is false
, the files
property represents files that are included. Because the complete list of files available is specific to the design-time environment, it is the responsibility of the design-time code to perform the inversion of the files
property whenever the isAutoInclude()
flag is flipped.public void setFiles(java.net.URL[] files)
isAutoInclude()
is true
, the files
property represents those files that are excluded; but when isAutoInclude()
is false
, the files
property represents files that are included. Because the complete list of files available is specific to the design-time environment, it is the responsibility of the design-time code to perform the inversion of the files
property whenever the isAutoInclude()
flag is flipped.public java.lang.Class[] getSelectionFilters()
getSelectionFilters()
comprise a list of Java classes for objects that implement a filtering mechanism for project file selection. The exact behavior of the filtering mechanism is dependent on the particular design-time implementation. In JDeveloper, the filters are classes that implement oracle.jdeveloper.deploy.common.dt.ProjectSelectionFilter
.public void setSelectionFilters(java.lang.Class[] selectionFilters)
setSelectionFilters()
comprise a list of Java classes for objects that implement a filtering mechanism for project file selection. The exact behavior of the filtering mechanism is dependent on the particular design-time implementation. In JDeveloper, the filters are classes that implement oracle.jdeveloper.deploy.common.dt.ProjectSelectionFilter
.public int getDeploySourceAs()
public void setDeploySourceAs(int deploySourceAs)
public HashStructure getHashStructure()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
protected final boolean equalsImpl(SelectedProjectFiles spf)
equals(Object)
that can also be used by subclasses that implement equals(Object)
. It assumes that the argument is not null
.